#ifndef _Frame_Page_h_
#define _Frame_Page_h_
#include "MESSAGE.h"

class Page:public WithPageLayout<ParentCtrl>{
	typedef Page CLASSNAME;
//	Switch sw;
public:
	Page()
	{
		CtrlLayout(*this);
		load <<= THISBACK(OnLoad);
		send <<= THISBACK(OnSend);
		
	//	Add(sw);
	//	sw.SizePos();
		sw.Add(HOOK_SOMEPROC, t_("hook"))
		  	.Add(UNHOOK_SOMEPROC, t_("unhook"))
			.Add(START_SC, t_("default"))
			.Add(STARTYJ_SC, t_("yijing"))
			.Add(STARTXS_SC, t_("xishui"))
			.Add(STARTMZ_SC, t_("mingzun"))
			.Add(STARTFY_SC, t_("fengying"));

		sw <<= START_SC;
	}
	
	void OnLoad(){
		cb_Inj();
	}
	
	void OnSend()
	{
		int n = sw;
		cb_Send(n);
	}
	
	Callback cb_Inj;
	Callback1<int> cb_Send;
};
#endif
